//
//  NSString+YYAdd.h
//  YYKit <https://github.com/ibireme/YYKit>
//
//  Created by ibireme on 13/4/3.
//  Copyright (c) 2015 ibireme.
//
//  This source code is licensed under the MIT-style license found in the
//  LICENSE file in the root directory of this source tree.
//

#import <UIKit/UIKit.h>

@interface NSString (YYAdd)

#pragma mark - Drawing

- (CGSize)sizeForFont:(UIFont *)font size:(CGSize)size mode:(NSLineBreakMode)lineBreakMode;


- (CGFloat)widthForFont:(UIFont *)font;


- (CGFloat)heightForFont:(UIFont *)font width:(CGFloat)width;

/**
 Trim blank characters (space and newline) in head and tail.
 @return the trimmed string.
 */
- (NSString *)stringByTrim;

/**
 *  汉字的拼音
 *
 *  @return 拼音
 */
- (NSString *)pinyin;

- (BOOL)isTextNil;

- (NSString *)getDateInfo;

- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

- (NSString*)md532BitLower;

- (NSString*)md532BitUpper;

- (BOOL)findPhotoUrl;

@end
